package com.sample.paxos.sm;

import com.swak.paxos.Value;
import com.swak.paxos.statemachine.StateMachine;

/**
 * SampleStateMachine.
 * 
 * @author 618lf
 */
public class SampleStateMachine implements StateMachine {

	@Override
	public int getSmID() {
		return 1;
	}

	@Override
	public boolean execute(int groupIdx, long instanceID, Value value) {
		Object data = value.getEstimateValue();
		System.out.println("数据：" + data);
		return true;
	}
}